package com.jxbeidou.system.api.log;

import com.jxbeidou.core.entity.R;
import com.jxbeidou.system.api.conts.ApiConstants;
import com.jxbeidou.system.api.log.vo.LogLoginVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @program: jxbeidou-basic
 * @ClassName: LoginLogAPI
 * @description: 登录日志API
 * @author: 杜晓祥
 * @create: 2023-12-27 09:20
 * 版权所有：交信北斗(北京)信息科技有些公司
 */
@FeignClient(name = ApiConstants.SYSTEM_NAME, contextId = LoginLogAPI.CONTEXT_ID)
@Component
public interface LoginLogAPI {

    String CONTEXT_ID = "login-log-api";

    String PREFIX = ApiConstants.API_PREFIX + "/sys/log-login";

    @PostMapping(value = PREFIX)
    R<String> save(@RequestBody LogLoginVO vo);

}
